package com.seventh.parkingrent.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.seventh.parkingrent.common.Result;
import com.seventh.parkingrent.domain.ParkingSpace;
import com.seventh.parkingrent.domain.PropertyManager;
import com.seventh.parkingrent.service.impl.PropertyManagerServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Lucas
 * @since 2021-08-24
 */
@RestController
@RequestMapping("")
@CrossOrigin("*")
@Slf4j
public class PropertyManagerController {

@Autowired
    PropertyManagerServiceImpl propertyManagerService;

    @GetMapping("/findallProperty")
    public Result findallProperty(){
        List<PropertyManager> list =propertyManagerService.findallProperty();
        return Result.success(list);
    }

}

